package router

import (
	"api-gatwary/handler/api"
	"github.com/gin-gonic/gin"
)

func Router() *gin.Engine {
	r := gin.Default()
	user := r.Group("/user")
	{
		user.POST("register", api.Register)
		user.POST("upload", api.Upload)
	}
	video := r.Group("/video")
	{
		video.POST("videoadd", api.Videoadd)
		video.POST("videolike", api.Videolike)
		video.POST("videolist", api.Videolist)
		video.POST("videoShow", api.VideoShow)

	}
	return r
}
